Skip to content

Conversation

lucianweber
Copy link

This pull-request removes all Unix-specific commands from the NPM-scripts and replace them with cross-platform commands, thereby allowing this project to built on Windows.

I have tested these changes on Windows and they produce a package.zip.
Since I currently do not have access to a Unix-system I can neither verify if the changes also altered the behaviour nor if this is still working on Unix, so this should be tested before merging.

Fixes #6 and fixes #14.

@Anasbzr
Copy link

Anasbzr commented Jul 4, 2018

I have deployed this package over to lambda and I get the following error!

(node:1) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): Error: Failed to launch chrome! spawn /tmp/headless_shell ENOENT

I had chrome working when deploying from a unix based system.

Based on unix, the Lambda's size is 42mb, Windows is 12mb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot Create Package: 'eslint' is not recognized as an internal or external command Error when running package in windows
2 participants